<?php
include('connect.php');

$con=Conectarse();

$sql_query = 'select * from libros where ISBN="'.$_GET["isbn"].'"';

$query = mysql_query( $sql_query);

?>
<html>
<head>
	<title>REDES-PHP</title>
</head>
<body>
<h1>Detales del libro</h1>

<?php
	while ($data = mysql_fetch_assoc($query)) {
?>
	<p>
<?php
		echo "<b>Libro:" . $data["Titulo"] . " </b>(";
		echo "ISBN: " . $data["ISBN"] . ") ";
		echo "<br/>Autor: " . $data["Autor"] . " - ";
		echo "<br/>Editorial: ". $data["Editorial"] . " - ";
		echo "<br/>Precio: " . $data["Precio"] ;
?>
	</p>
<?php
	}
	
	mysql_close($con);
?>


</body>
</html>
